
obj= AccountItem_test_001 AccountItem_test_002 AccountItem_test_003 AccountItem_test_004 Accountbook_main

all: AccountItem_test_001 AccountItem_test_002 AccountItem_test_003 AccountItem_test_004 Accountbook_main

AccountItem_test_001: AccountItem_test_001.o AccountItem.o
	g++ AccountItem.o AccountItem_test_001.o -o AccountItem_test_001


AccountItem_test_002: AccountItem_test_002.o AccountItem.o
	g++ AccountItem.o AccountItem_test_002.o -o AccountItem_test_002


AccountItem_test_003: AccountItem_test_003.o AccountItem.o
	g++ AccountItem.o AccountItem_test_003.o -o AccountItem_test_003


AccountItem_test_004: AccountItem_test_004.o AccountItem.o
	g++ AccountItem.o AccountItem_test_004.o -o AccountItem_test_004


Accountbook_main: Accountbook_main.o Accountbook.o AccountItem.o
	g++ AccountItem.o Accountbook.o Accountbook_main.o -o Accountbook_main

Accountbook.o: Accountbook.cpp Accountbook.h AccountItem.h
Accountbook_main.o: Accountbook_main.cpp Accountbook.h AccountItem.h
AccountItem.o: AccountItem.cpp AccountItem.h
AccountItem_test_001.o: AccountItem_test_001.cpp AccountItem.h
AccountItem_test_002.o: AccountItem_test_002.cpp AccountItem.h
AccountItem_test_003.o: AccountItem_test_003.cpp AccountItem.h
AccountItem_test_004.o: AccountItem_test_004.cpp AccountItem.h

clean:
	rm -f *.o ${obj}
